package com.kaifamiao.month03.day0313;

public class Card {
    private  String suite; // 花色
    private  int face; // 点数
    public Card(String suite, int face) {
        this.suite = suite;
        this.face = face;
    }
    @Override
    public String toString() {
        String faceStr = switch (face) {
            case 1 -> "A";
            case 11 -> "J";
            case 12 -> "Q";
            case 13 -> "K";
            default -> String.valueOf(face);
        };
        return suite + faceStr;
    }
}